import React from 'react';
import { history } from 'umi';
import { Result, Button } from 'antd';
import Page from '@/components/page/index';

function Error() {
  return (
    <Page>
      <Result
        status="404"
        title="404"
        subTitle="页面不存在"
        extra={
          <Button type="primary" onClick={() => history.replace('/home')}>
            返回首页
          </Button>
        }
      />
    </Page>
  );
}

export default Error;
